#!/bin/bash

# script to hot deploy changes without the installer

echo "===================================================================="
echo "Make sure Visual Studio is closed when you run this!"
echo "===================================================================="

DEPLOYDIR=/cygdrive/c/Program\ Files/Avva\ Mobile\ Enterprise\ Solutions/NHibernate\ Helper\ Kit/

if [ -d "$DEPLOYDIR" ] ; then
  rsync -Pv bin/AvvaMobileNHibernateHelperKit.dll "$DEPLOYDIR"
  rsync -Pv bin/log4net.dll "$DEPLOYDIR"
  rsync -Pv bin/RD.Metadata.Database.dll "$DEPLOYDIR"
fi;

ls -l bin/AvvaMobileNHibernateHelperKit.dll
ls -l bin/log4net.dll
ls -l bin/RD.Metadata.Database.dll

ls -l "$DEPLOYDIR/AvvaMobileNHibernateHelperKit.dll"
ls -l "$DEPLOYDIR/log4net.dll"
ls -l "$DEPLOYDIR/RD.Metadata.Database.dll"

rm -f nhhk.log
